package com.feditory.view.category.vo;

import java.util.ArrayList;
import java.util.List;

import javax.xml.bind.annotation.XmlRootElement;

@XmlRootElement(name = "maincategory")
public class MainCategoryListVO {

    private long categoryId;

    private String categoryName;

    private boolean loginUseableYn;

    private List<MainCategoryListVO> subList;

    private int displayOrder;

    public void addSubCategory(MainCategoryListVO subCategory) {
        if (this.subList == null) this.subList = new ArrayList<MainCategoryListVO>();

        this.subList.add(subCategory);
    }

    public long getCategoryId() {
        return categoryId;
    }

    public void setCategoryId(long categoryId) {
        this.categoryId = categoryId;
    }

    public String getCategoryName() {
        return categoryName;
    }

    public void setCategoryName(String categoryName) {
        this.categoryName = categoryName;
    }

    public List<MainCategoryListVO> getSubList() {
        return subList;
    }

    public void setSubList(List<MainCategoryListVO> subList) {
        this.subList = subList;
    }

    public boolean isLoginUseableYn() {
        return loginUseableYn;
    }

    public void setLoginUseableYn(boolean loginUseableYn) {
        this.loginUseableYn = loginUseableYn;
    }

    public int getDisplayOrder() {
        return displayOrder;
    }

    public void setDisplayOrder(int displayOrder) {
        this.displayOrder = displayOrder;
    }

}
